//
//  MeiYanTableViewCell.m
//  bluetooth
//
//  Created by 周季阳 on 15/7/2.
//  Copyright (c) 2015年 switch. All rights reserved.
//

#import "MeiYanTableViewCell.h"
#import "UIViewAdditions.h"

@implementation MeiYanTableViewCell
@synthesize zTitle,zBackView,zImageView,zDescribe;

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        zBackView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 10, SCREEN_WIDTH-10, 60)];
        zBackView.backgroundColor = [UIColor whiteColor];
        //zBackView.image = [UIImage imageNamed:@"美颜膜方_03"];
        //zBackView.layer.cornerRadius = 6.0;
        [self addSubview:zBackView];
        
        
        zImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 50, 50)];
        //zImageView.image = [UIImage imageNamed:@"美颜膜方_03"];
        zImageView.userInteractionEnabled = NO;
        [zBackView addSubview:zImageView];
        
        zTitle = [[UILabel alloc]initWithFrame:CGRectMake(zImageView.right+5, 5, zBackView.frame.size.width-60, 14)];
        zTitle.textColor = [UIColor blackColor];
        zTitle.backgroundColor = [UIColor clearColor];
        zTitle.textAlignment = NSTextAlignmentLeft;
        zTitle.font = [UIFont systemFontOfSize:13];
        [zBackView addSubview:zTitle];
        
        zDescribe = [[UILabel alloc]initWithFrame:CGRectMake(zImageView.right+5, zTitle.bottom, zBackView.frame.size.width-60, 40)];
        zDescribe.textColor = [UIColor grayColor];
        zDescribe.backgroundColor = [UIColor clearColor];
        zDescribe.textAlignment = NSTextAlignmentLeft;
        zDescribe.numberOfLines = 0;
        zDescribe.text = @"啊啊啊啊啊啊啊啊啊大神大神大神大神大神大神大神大神大神大神的撒撒打算打算的啊实打实大师1321321321312321";
        zDescribe.font = [UIFont systemFontOfSize:10];
        [zBackView addSubview:zDescribe];
        
    }
    return self;
}

@end
